package com.jing.yao.modeler;

import org.flowable.idm.api.User;
import org.flowable.ui.common.model.RemoteUser;
import org.flowable.ui.common.security.SecurityUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * Hello world!
 */
@SpringBootApplication
public class FlowAbleApplication {
    public static void main(String[] args) {

        User user = new RemoteUser();
        user.setFirstName("admin");
        user.setId("admin");
        user.setDisplayName("admin");
        SecurityUtils.assumeUser(user);
        SpringApplication.run(FlowAbleApplication.class, args);
    }
}
